package easyjava.hibernate.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="accommodation")
@Entity
public class Accommodation {
     @Id
     @Column(name="id")
     private int id;
     @Column(name="create_datetime")
     private Date crateDateTime;
     @Column(name="expire_datetime")
     private Date expireDateTime;
     @Column(name="apartment_id")
     private int apartmnetId;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getCrateDateTime() {
		return crateDateTime;
	}
	public void setCrateDateTime(Date crateDateTime) {
		this.crateDateTime = crateDateTime;
	}
	public Date getExpireDateTime() {
		return expireDateTime;
	}
	public void setExpireDateTime(Date expireDateTime) {
		this.expireDateTime = expireDateTime;
	}
	public int getApartmnetId() {
		return apartmnetId;
	}
	public void setApartmnetId(int apartmnetId) {
		this.apartmnetId = apartmnetId;
	}
	@Override
	public String toString() {
		return "Accommodation [id=" + id + ", crateDateTime=" + crateDateTime + ", expireDateTime=" + expireDateTime
				+ ", apartmnetId=" + apartmnetId + "]";
	}
}
